home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MultiSession 1.04 Source / Core 27⁄June⁄1993 / CHScrollBar.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-23  |  1.2 KB  |  48 lines  |  [TEXT/KAHL]

  1. /* CHScrollBar.h */
  2.  
  3. #pragma once
  4.  
  5. #include "CViewRect.h"
  6.  
  7. class CWindow;
  8.  
  9. /* internal part IDs */
  10. #ifndef mNone
  11. #define mNone (0)
  12. #endif
  13. enum    {mLeftOne = mNone + 1, mLeftPage, mHBox, mRightOne, mRightPage};
  14.  
  15. struct    CHScrollBar    :    CViewRect
  16.     {
  17.         CViewRect*    Owner;
  18.         long                NumCells;
  19.         long                CellIndex;
  20.         short                CurrentOperation;
  21.         LongPoint        OneLeftZoneTL;
  22.         LongPoint        OneLeftZoneExt;
  23.         LongPoint        PageLeftZoneTL;
  24.         LongPoint        PageLeftZoneExt;
  25.         LongPoint        HScrollZoneTL;
  26.         LongPoint        HScrollZoneExt;
  27.         LongPoint        PageRightZoneTL;
  28.         LongPoint        PageRightZoneExt;
  29.         LongPoint        OneRightZoneTL;
  30.         LongPoint        OneRightZoneExt;
  31.         MyBoolean        HScrollable;
  32.  
  33.         void            IHScrollBar(LongPoint Start, LongPoint Extent, CViewRect* TheOwner,
  34.                                 CWindow* TheWindow, CEnclosure* TheEnclosure);
  35.         short            FindPart(LongPoint Where);
  36.         void            DoMouseDown(MyEventRec Event);
  37.         void            RedrawHBar(void);
  38.         void            DoUpdate(void);
  39.         void            DoEnable(void);
  40.         void            DoDisable(void);
  41.         void            DoResume(void);
  42.         void            DoSuspend(void);
  43.         void            RecalcScrollRects(void);
  44.         void            RecalcLocations(LongPoint EnclosureVisRectStart,
  45.                                 LongPoint EnclosureVisRectExtent, LongPoint EnclosureOrigin);
  46.         void            SetPosition(long NewCellIndex, long NewNumCells);
  47.     };
  48.